delete and delete[] both can be used to free up dynamically allocated array.

The difference is : if the array is an array of object, delete will execute only first element's destructor while delete[] will execute destructor of all the array elements.